package cn.miju.database.mapper;

import cn.miju.database.entity.SysUser;
import cn.miju.database.entity.SysUserAuthGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * <pre>
 * 用户组织授权Mapper
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-04-03 9:50
 */
public interface SysUserAuthGroupMapper extends BaseMapper<SysUserAuthGroup> {
    /**
     * 指定组织用户分页查询
     * @param page 分页对象
     * @param groupId 组织ID
     * @return 返回
     */
    Page<SysUser> getUserPageByGroupId(@Param("page") Page<SysUser> page, @Param("groupId") Long groupId);
}
